home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9267 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: castle.nando.net!news
  2. From: actuary@nando.net   (Bill McCarthy)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: argc/argv & switches
  5. Date: 9 Mar 1996 00:43:06 GMT
  6. Organization: Nando.net Public Access
  7. Message-ID: <4hqk6q$nu5@castle.nando.net>
  8. References: <4h2j8j$9gn@milo.freenet.vancouver.bc.ca> <danpop.825593142@rscernix> <TANMOY.96Mar8095931@qcd.lanl.gov>
  9. Reply-To: actuary@nando.net (Bill McCarthy)
  10. NNTP-Posting-Host: grail1912.nando.net
  11. X-Newsreader: IBM NewsReader/2 v1.2
  12.  
  13. In <TANMOY.96Mar8095931@qcd.lanl.gov>,
  14. tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) writes:
  15.  
  16. >In article <4ho9dv$bcb@castle.nando.net>
  17. >actuary@nando.net   (Bill McCarthy) writes:
  18.  
  19. >BM: While we're on the standard, Dan, is the "missing period" contained on
  20. >BM: page 26 (6.1.3.1)?
  21. >BM: 
  22. >BM: I've been stuck on this page because (1) the standard seems to define
  23. >BM: numbers such as "123" (i.e. a string of 1 or more digits) to be a double
  24. >BM: here and as an int in the following section (I peaked :-).  There appears
  25. >BM: to be a need for a period at the end of the second line following
  26. >BM: "fractional-constant."
  27. >
  28. >123 is an integer constant, not a double.
  29.  
  30. According to my copy of the standard, one representation of a
  31. floating-constant is:   fractional-constant optional-stuff
  32.  
  33. So a fractional-constant is a floating-constant.
  34.  
  35. Now one of the two representations of a fractional-constant is
  36. simply a digit-sequence.  You apparently disagree that this should
  37. be following by a period, this is the point of my comment.  But:
  38.  
  39. digit-sequence:
  40.     digit
  41.     digit-sequence  digit
  42.  
  43. So, 123 is a digit-sequence.  A digit-sequence is a fractional-constant.
  44. A fractional-constant is a float-constant.
  45.  
  46. Therefore, 123 is a float-constant :-)  Yes, I know it is really an int,
  47. but without the period where I pointed out it should be, how can
  48. you conclude that it is not a float-constant?
  49.  
  50. Regards,
  51.  
  52. Bill McCarthy
  53. actuary@nando.net
  54. Wendell, NC  USA
  55.  
  56.